package com.taotao.service;

import com.taotao.mapper.ItemDescMapper;
import com.taotao.pojo.ItemDesc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/28 16:57
 **/
@Service
public class ItemDescService {
    @Autowired
    private ItemDescMapper itemDescMapper;

    @Transactional(propagation = Propagation.REQUIRED)
    public Boolean addItemDesc(ItemDesc itemDesc) {
        return itemDescMapper.addItemDesc(itemDesc);
    }
}
